package com.viknix.threadpool.manager.client.message;

import com.viknix.threadpool.manager.client.core.DynamicThreadPoolExecutor;
import com.viknix.threadpool.manager.common.model.PoolParameterInfo;

/**
 * @Author: Dongqi
 * @Date: 2021/10/22 10:24
 * @Version 1.0
 * @Description 消息发生器接口
 */
public interface SendMessageService {

    /**
     * 发送告警消息
     *
     * @param threadPoolExecutor
     */
    void sendAlarmMessage(DynamicThreadPoolExecutor threadPoolExecutor);

    /**
     * 发送变更消息
     *
     * @param newParameter
     * @param oldParameter
     */
    void sendChangeMessage(PoolParameterInfo newParameter, PoolParameterInfo oldParameter);

}
